package
{
	import com.pesilo.base.BaseComponent;
	import com.pesilo.module.home.mvc.controller.ApplicationFacade;
	import com.pesilo.module.home.mvc.view.component.HomeComponent;
	
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;

	[SWF(backgroundColor="#666666")]
	public class App extends BaseComponent
	{
		public var homeCmp:HomeComponent;
		public function App()
		{
			stage.align=StageAlign.TOP_LEFT;
			stage.scaleMode=StageScaleMode.NO_SCALE;
			super();
		}
		
		override public function initUI():void{
			homeCmp=new HomeComponent();
		}
		
		override public function initEvent(b:Boolean=true):void{
			
		}
		
		override public function initLocation():void{
			
		}
		
		override public function start():void{
			ApplicationFacade.getInstance(ApplicationFacade.NAME).startup(this);
			
			ApplicationFacade.getInstance(ApplicationFacade.NAME).sendNotification(ApplicationFacade.EVENT_SHOW);
		}
	}
}